<template>
  <div id="app">
    <img src="./assets/logo.png">
    <router-view/>
    <com :age="ages" @patch="msg">
      <h1 slot="a">slot使用</h1>
      <h1 slot="b">slot引用</h1>
    </com>
    <!-- <vuexx></vuexx> -->
    <apage/>
    <bpage/>
  </div>
</template>

<script>
import './components/n.js'
import Com from './components/Com'
// import Vuexx from './components/Vuex'

import Apage from './components/Apage'
import Bpage from './components/Bpage'

export default {
  name: 'App',
  data () {
    return {
      ages: '18'
    }
  },
  components: {
    Com,
    // Vuexx,
    Apage,
    Bpage
  },
  methods: {
    msg: function (age) {
      this.ages++
      window.console.log(age)
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
